package com.ljd.gulimall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ljd.common.utils.PageUtils;
import com.ljd.gulimall.product.entity.CategoryEntity;
import com.ljd.gulimall.product.vo.Catelog2Vo;

import java.util.List;
import java.util.Map;

/**
 * 商品三级分类
 *
 * @author ljd
 * @email 2381773911@qq.com
 * @date 2023-02-06 17:20:05
 */
public interface CategoryService extends IService<CategoryEntity> {

    PageUtils queryPage(Map<String, Object> params);

    List<CategoryEntity> listWithTree();

    void removeMenusByIds(Long[] catIds);

    List<Long> findParentId(Long catelogId);

    void updateCascode(CategoryEntity category);

    Map<String, List<Catelog2Vo>> getCatlogJson();
}

